package com.itheima.UDPTest.test03;

import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

public class Send {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds = new DatagramSocket();
        DatagramPacket dp = new DatagramPacket("柳岩大组播".getBytes(),
                "柳岩大组播".getBytes().length,
                InetAddress.getByName("224.0.1.199"),
                10000);

        ds.send(dp);
        ds.close();
    }
}
